package com.kingyun.gpsinspection.purificationservice.dao.mapper.som;


import com.kingyun.gpsinspection.purificationservice.facade.model.som.Problem;

/**
 * 问题上报mapper
 */
public interface SomProblemMapper {

    /**
     * 根据ID删除问题上报
     * @param problemId
     * @return
     */
    int deleteByPrimaryKey(String problemId);

    /**
     * 新增问题上报
     * @param record
     * @return
     */
    int insert(Problem record);

    /**
     * 新增问题上报
     * @param record
     * @return
     */
    int insertSelective(Problem record);

    /**
     * 根据ID查询问题上报
     * @param problemId
     * @return
     */
    Problem selectByPrimaryKey(String problemId);

    /**
     * 修改问题上报
     * @param record
     * @return
     */
    int updateByPrimaryKeySelective(Problem record);

    /**
     * 修改问题上报
     * @param record
     * @return
     */
    int updateByPrimaryKey(Problem record);
}